import { HashRouter, Route, Routes } from 'react-router-dom';
import Book from '../book/Book';
import Dashboard from '../dashboard/Dashboard';
import Meeting from '../meeting/Meeting';
import Opinion from '../opinion/Opinion';
import Programme from '../programme/Programme';
import Record from '../record/Record';
import Rectification from '../rectification/Rectification';
import Report from '../report/Report';
import Sync from '../sync/Sync';
import AppProviders from './AppProviders';

export default function AppRouter() {
  return (
    <HashRouter>
      <Routes>
        <Route path="" element={<AppProviders />}>
          <Route index element={<Dashboard />} />
          <Route path="opinion" element={<Opinion />} />
          <Route path="meeting" element={<Meeting />} />
          <Route path="programme" element={<Programme />} />
          <Route path="book" element={<Book />} />
          <Route path="report" element={<Report />} />
          <Route path="rectification" element={<Rectification />} />
          <Route path="sync" element={<Sync />} />
          <Route path="record" element={<Record />} />
        </Route>
      </Routes>
    </HashRouter>
  );
}
